@echo off

rem A batch file for SimpleCSharpApp.exe
rem which captures the app's return value.

SimpleCSharpApp

@if "%ERRORLEVEL%" == "0" goto success

:fail
    echo This application has failed!
    echo return value = %ERRORLEVEL%
    goto end

:success
	echo This application has succeded!
	echo return value = %ERRORLEVEL%
	goto end

:end
	echo All Done.